<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 1.声明
    let str = `this is string`;
    console.log(str, typeof str);

    // 2.中间可以出现换行符
    let str2 = `
        this is string
        this is string
        this is string
    `;
    console.log(str2, typeof str2);
    let str3 = `
       <ul>
           <li>nanfeng</li>
           <li>mortal</li>
           <li>mingquan</li>
       </ul>
    `;
    console.log(str3, typeof str3);

    // 3.变量拼接
    let actor = "魏翔";
    let out = `${actor} 是我心目中最搞笑的演员`;
    console.log(out);

</script>

</html>